/*
 * Copyright 2002-2016 the Beijing Brain Technology co.,LTD http://www.bris.cn/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bris.niosocket.mapping;

import com.bris.niosocket.message.IMessage;

/**
 * 请求处理入口</br>
 * 接受一个业务请求,并返回一个处理该请求的处理链{@link HandlerChain}</br>
 * 2016年2月17日</br>
 * @author xunaidong
 * @since 1.0.0
 */
public interface HandlerMapping {
	/**
	 * 
	 * 接受一个业务请求,并返回一个处理该请求的处理链{@link HandlerChain}<br/> 
	 * @author xunaidong
	 * @param request
	 * @return 
	 * @since 1.0.0
	 */
	HandlerChain getHandler(IMessage request) throws Exception;
	
	

}
